home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 246
/
246.d81
/
sammy title
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
9KB
|
223 lines
0 print"[147]"
1 x=rnd(-ti)
2 goto100
3 rem goto130:rem unrem if unpacked
4 rem intro 1
5 v=53248:s=54272:poke53272,31
6 gosub1530:sys49435:poke781,0:poke782,136:sys49458:poke49152,7
7 dim ac(8):fori=1to8:ac(i)=.:nexti
8 dimsn(7):fori=1to7:readsn(i):nexti
9 data11,13,14,15,14,13,11
10 dimc(6):fori=1to6:readc(i):next
11 data 7,5,10,12,14,15
12 fori=1to8:k=i:k=k-1:k=k*2:pokev+1+k,255:poke2040+i-1,11:nexti
13 pokev+21,255:pokev+37,7:pokev+38,11:pokev+28,255:pokev+29,0:pokev+23,0
14 c$="[154][159][154][144]":fori=1to3:gosub40:nexti:gosub16:fori=4to6:gosub40:nexti:goto60
15 rem main loop
16 fori=1to5:ifac(i)<>.then18
17 r=int(rnd(1)*2)+1:ifr=2thenac(i)=1:k=i:k=k-1:k=k*2:gosub23
18 ifac(i)=.then21
19 k=i:b=ac(k):poke2040+k-1,sn(b):ac(k)=ac(k)+1
20 ifac(k)>7thenac(k)=0:b=k-1:b=b*2:pokev+1+b,255
21 nexti:z=z+1:ifz>32thengosub85:return
22 goto16:rem choose random x y color
23 x=int(rnd(1)*155)+1:y=int(rnd(1)*28)+1:x=x+100:y=y+112:pokev+.+k,x
24 pokev+1+k,y:r=int(rnd(1)*6)+1:pokev+39+k,c(r):return
40 rem loadstar presents
41 printmid$(c$,i,1):gosub45:return
45 forw=1to35:nextw
46 print"loadstar presents"
47 forw=1to35:nextw:return
50 return
55 rem intro part 2
60 z=.:forw=1to800:nextw
61 fori=1to3:gosub66:nexti:gosub16:fori=4to6:gosub66:nexti:goto80
66 printmid$(c$,i,1):gosub69:return
69 forw=1to35:nextw
70 print"a"
71 print"richard j. derocher"
72 print"production"
73 forw=1to35:nextw:return
80 goto190
84 rem move sprites off screen
85 fori=1to8:k=i:k=k-1:k=k*2:pokev+1+k,255:poke2040+i-1,11:nexti:return
100 dv=peek(186):if dv<8 then dv=8
110 print"[147]":z5=0:sb=53265:s1=11:s2=27
120 poke 53280,0:poke 53281,0:print chr$(14):print chr$(8):goto3
130 sys57812"sm music player",dv,0:poke780,0:poke781,0:poke782,192:sys65493
140 sys57812"sm font",dv,0:poke780,0:poke781,0:poke782,56:sys65493
150 f$="etal.mux"
160 sys57812f$,dv,0:poke780,0:poke781,0:poke782,132:sys65493
170 f$="holst.mux":sys57812f$,dv,0:poke780,0:poke781,0:poke782,136:sys65493
175 sys57812"sm sprites",dv,0:poke780,0:poke781,64:poke782,3:sys65493
177 sys57812"sm sprite",dv,0:poke780,0:poke781,192:poke782,2:sys65493:goto5
180 rem intro part 2
190 printchr$(14)
200 rem gosub1530:sys49435:poke781,0:poke782,136:sys49458:poke49152,7
210 forw=1to1000:nextw:print"[147][159]who knows what evil lurks"
220 printspc(7)"in the heart of the city?"
230 forw=1to3000:nextw
240 printspc(6)"sammy marlo doesn't know..."
250 forw=1to2000:nextw
260 printspc(6)"but he'll make a good guess"
270 printspc(7)"if the price is right..."
280 forw=1to4000:nextw
290 poke49152,0:poke54276,0:poke54283,0:poke54290,0:sys49629
300 print"[147]"
310 gosub1530:sys49435:poke781,0:poke782,132:sys49458:poke49152,7:gosub1550
320 t=ti+2320:poke 198,0
330 kb=peek(198)
340 if kb<>0 goto 370
350 if t<ti then goto 370
360 goto 330
370 rem credits
380 poke198,0:gosub1190
390 print tab(17)"game by"
400 print tab(11)"richard j. derocher"
410 gosub620:ifz5=1then570
420 gosub880:print"":print tab(26)"written with"
430 print tab(24)"quest writer by"
440 print tab(26)"[145]jon mattson"
450 gosub620:ifz5=1then570
460 gosub1370:printtab(13)"title music by"
470 print tab(14)"harry bratt"
480 gosub620:ifz5=1then570
490 gosub660:print tab(11)"title pictures by"
500 print tab(10)"cheryl de boissiere"
510 poke 53265,27
520 t=t+2670:poke 198,0
530 kb=peek(198)
540 if kb<>0 then goto 570
550 if t<ti then goto 570
560 goto 530
570 poke49152,0:poke54276,0:poke54283,0:poke54290,0:sys49629
580 print"[147]":printchr$(14):poke 214,12:poke 211,15:sys 58732
590 poke53272,20:print "[159]loading..."
600 gosub1810
610 :rem wait sub
620 forw=1to1000
630 kb=peek(198)
640 ifkb<>0thenz5=1:w=7000
650 nextw:return
660 rem room
670 pokesb,s1:print"[147][152] [181] [167][207][196][192][198][185][187] [180] ";
680 print" [181][146][176][192][192][174][180][160][160][160][160][181] [180] ";
690 print" [181][146][221] [161][180] [181] ";
700 print"[180] [181][146][221] [161][180] [181] ";
710 print" [180] [181][146][221] [161][180] [181] ";
720 print" [180] [181][146][221] [161][180][187] [181] ";
730 print" [180] [181][146][221] [161][180][181] [181] ";
740 print" [180] [181][146][221] [161][180][161] [181] ";
750 print" [180] [181][146][221] [161][180][181] [181] ";
760 print" [180] [181][146][221] [161][180][190] [181] ";
770 print" [180] [181][146][221] [161][180] [181] ";
780 print" [180] [181][146][221] [161][180] [181] ";
790 print" [180] [181][146][221][164][164][152][161][180] ";
800 print" [181] [180] [181][146][221] [152]";
810 print"[161][180] [181] [180] [181][146][221]";
820 print" [152][161][180] [181] [180] ";
830 print"[181][146][221] [152][161][165] [181] [180] ";
840 print" [146][169][169] [152][146][188][185][162][146][184][183][163][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162]";
850 print"[162][187][152][223] [146][169][169] ";
860 print" [223][152][146][223] [146][169][169] ";
870 print" [223][152][146][223] [146][155]":pokesb,s2:return
880 rem slick guy
890 pokesb,s1:print"[147] [151][162][184][184][184][184][183][183][183][184][146][162][187][159] [155] ";
900 print" [159] [151][184] ";
910 print" [188][155][146] [159] [152][190] [151] ";
920 print" [185][185] [188][155][146] [159] [152][172][151][172][150]";
930 print"[146][172][152][185] [164][151][172][150][184][184][184][151][187] [191][152][146][172][188][155][146] [159] ";
940 print" [152] [167][150][185][162][146] [163][163] [151][146][188][185][150][146][172][184][184][152][146]";
950 print"[172] [155][146] [159] [156] [152] [167][129] [150][146][162]";
960 print"[151] [150] [162][146][190][129][184][184][146] [150] [152] [188][155][146] [159] ";
970 print" [150] [151] [152][172][129] [162] [146][162][151] [150][188] [146][172][129][190] [146] ";
980 print" [150][187][152] [151][146][161][155] [159] [150] [151] [129][146][182] ";
990 print"[188][146][187][162][175] [146][191] [150] [129] [162][146] [150][188][151] [146][181][155] [159] ";
1000 print" [150] [152] [129][146][182][150] [182][182][146] [161][129][190][190][146] [188] [172][146] ";
1010 print"[182][146] [161][129] [151] [146][180][155] [159] [150] [152]";
1020 print" [182][150] [183][183][183] [129] [146][161] [188] [152] [146][180] [155] [159] ";
1030 print" [150] [152][188][182][150] [146][191] [129] [150] [129][146][161] [172] [146] ";
1040 print"[170][152] [146] [155] [159] [150] [146][191] ";
1050 print" [172][187][129][188][146] [172] [150] [129] [172][146] [170] [155] [159] ";
1060 print" [150] [170][170] [172][146][190][129][187][162] [146] [191] [188] [146] [170] [155] ";
1070 print"[159] [150] [182][182] [129][146][162] [188][146][188][187] [146] ";
1080 print" [187] [155] [159] [150] [161] [129] [150] [129]";
1090 print" [146][187][162][146] [187] [180] [155] [159] [150]";
1100 print" [161] [129][187] [146][187] [129][191][155][146] [167] [155] [159] ";
1110 print" [150] [146] [162][162][162][162][155][162][162] [155] ";
1120 print"[180][146] [155] [159] [156] [150][188] [129] [155][146]";
1130 print" [162][175]